package cn.com.dcsgo.constant;

/**
 * MqConst
 *
 * @author Dcsgo
 * @since 2025/4/18 下午2:55
 */

public class MqConst {
    /**
     * 消息补偿
     */
    public static final String MQ_KEY_PREFIX = "uuyx.mq:list";
    public static final int RETRY_COUNT = 3;

    /**
     * 商品上下架
     */
    public static final String EXCHANGE_GOODS_DIRECT = "uuyx.goods.direct";
    public static final String ROUTING_GOODS_UPPER = "uuyx.goods.upper";
    public static final String ROUTING_GOODS_LOWER = "uuyx.goods.lower";
    //队列
    public static final String QUEUE_GOODS_UPPER = "uuyx.goods.upper";
    public static final String QUEUE_GOODS_LOWER = "uuyx.goods.lower";

    /**
     * 商品删除
     */
    public static final String ROUTING_GOODS_DELETE = "uuyx.goods.delete";
    //队列
    public static final String QUEUE_GOODS_DELETE = "uuyx.goods.delete";
    public static final String ROUTING_GOODS_BATCH_DELETE = "uuyx.goods.batch.delete";
    //队列
    public static final String QUEUE_GOODS_BATCH_DELETE = "uuyx.goods.batch.delete";

    /**
     * 团长上下线
     */
    public static final String EXCHANGE_LEADER_DIRECT = "uuyx.leader.direct";
    public static final String ROUTING_LEADER_UPPER = "uuyx.leader.upper";
    public static final String ROUTING_LEADER_LOWER = "uuyx.leader.lower";
    //队列
    public static final String QUEUE_LEADER_UPPER = "uuyx.leader.upper";
    public static final String QUEUE_LEADER_LOWER = "uuyx.leader.lower";

    //订单
    public static final String EXCHANGE_ORDER_DIRECT = "uuyx.order.direct";
    public static final String ROUTING_ROLLBACK_STOCK = "uuyx.rollback.stock";
    public static final String ROUTING_MINUS_STOCK = "uuyx.minus.stock";

    public static final String ROUTING_DELETE_CART = "uuyx.delete.cart";
    //解锁普通商品库存
    public static final String QUEUE_ROLLBACK_STOCK = "uuyx.rollback.stock";
    public static final String QUEUE_SECKILL_ROLLBACK_STOCK = "uuyx.seckill.rollback.stock";
    public static final String QUEUE_MINUS_STOCK = "uuyx.minus.stock";
    public static final String QUEUE_DELETE_CART = "uuyx.delete.cart";

    //支付
    public static final String EXCHANGE_PAY_DIRECT = "uuyx.pay.direct";
    public static final String ROUTING_PAY_SUCCESS = "uuyx.pay.success";
    public static final String QUEUE_ORDER_PAY = "uuyx.order.pay";
    public static final String QUEUE_LEADER_BILL = "uuyx.leader.bill";

    //取消订单
    public static final String EXCHANGE_CANCEL_ORDER_DIRECT = "uuyx.cancel.order.direct";
    public static final String ROUTING_CANCEL_ORDER = "uuyx.cancel.order";
    //延迟取消订单队列
    public static final String QUEUE_CANCEL_ORDER = "uuyx.cancel.order";

    /**
     * 定时任务
     */
    public static final String EXCHANGE_DIRECT_TASK = "uuyx.exchange.direct.task";
    public static final String ROUTING_TASK_23 = "uuyx.task.23";
    //队列
    public static final String QUEUE_TASK_23 = "uuyx.queue.task.23";
}
